import time
import unittest

from unittestreport import TestRunner

ctime = time.strftime('%Y-%m-%d %H-%M-%S')
report_name = ctime + '-report.html'
suite = unittest.defaultTestLoader.discover(start_dir="./")
runner = TestRunner(suite=suite,filename=report_name,report_dir="D:/PycharmProjects/ecShop/autoTest/reports",title="自动化测试报告",tester="trzhou",desc="用例执行结果")
runner.run()

if __name__ == '__main__':
    unittest.main()






